upload All Local Changes
abstract suspend fun uploadAllLocalChanges(timeout: <ERROR CLASS> = Duration.INFINITE): Boolean
Content copied to clipboard
Calling this method will block until all known local changes have been uploaded to the server or the specified timeout is hit. This will involve network access, so calling this method should only be done from a non-UI thread.
Return
true if the data was uploaded. false if the upload timed out before it could complete. The upload will continue in the background, even after returning false.
Parameters
timeout
Maximum amount of time before this method should return.
Throws
IllegalArgumentException
if timeout is <= 0.
IllegalStateException
if called from inside a SyncSession.ErrorHandler.
if a problem was encountered with the connection during the upload.